package com.cdut.hwadeefsc.dto;

/**
 * 管理员创建用户（老师、领导）时接收参数的DTO
 */
public class UserCreateDTO {
    // 姓名
    private String name;
    // 角色（teacher/leader）
    private String role;
    // 登录账号
    //private String username;
    // 登录密码
    private String password;
    // 所属组织ID
    private Long organizationId;

    // 无参构造方法（必要，用于JSON反序列化）
    public UserCreateDTO() {
    }

    // 全参构造方法（可选，根据需要添加）
    public UserCreateDTO(String name, String role, String password, Long organizationId) {
        this.name = name;
        this.role = role;
        this.password = password;
        this.organizationId = organizationId;
    }

    // getter方法
    public String getName() {
        return name;
    }

    public String getRole() {
        return role;
    }


    public String getPassword() {
        return password;
    }

    public Long getOrganizationId() {
        return organizationId;
    }

    // setter方法
    public void setName(String name) {
        this.name = name;
    }

    public void setRole(String role) {
        this.role = role;
    }


    public void setPassword(String password) {
        this.password = password;
    }

    public void setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
    }
}